import request from '@/utils/request'

// 获取分类列表
export const getGoodsChannelListSerive =()=>request.get('/goods/channel/list')
// 增加商品分类
export const addGoodsChannelSerive = (data)=>request.post('/goods/channel/add',data)
// 删除商品分类
export const deleteGoodsChannelSerive = (id)=>request.post('/goods/channel/delete',{id})
// 修改商品分类
export const updateGoodsChannelSerive = (data)=>request.post('/goods/channel/update',data)

// 获取商品列表
export const getGoodsListSerive = (params)=>request.get('/goods/list',{params})
// 获取商品信息
export const getGoodsSerive = (id)=>request.get('/goods/info',{id})
// 新增商品
export const addGoodsSerive = (data)=>request.post('/goods/add',data)
// 删除商品
export const deleteGoodsSerive = (id)=>request.post('/goods/delete',{id})
// 修改商品
export const updateGoodsSerive = (data)=>request.post('/goods/update',{id})